<!DOCTYPE HTML>
<html lang="zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="webkit|ie-comp|ie-stand" name="renderer">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
          name="viewport"/>
    <meta content="no-siteapp" http-equiv="Cache-Control"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" th:src="@{/lib/html5shiv.js}"></script>
    <script type="text/javascript" th:src="@{/lib/respond.min.js}"></script>
    <![endif]-->
    <script th:src="@{/js/register.js}" type="text/javascript"></script>
    <link rel="stylesheet" th:href="@{/h-ui/css/H-ui.min.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/h-ui.admin/css/H-ui.admin.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/lib/Hui-iconfont/1.0.8/iconfont.css}" type="text/css"/>
    <link id="skin" rel="stylesheet" th:href="@{/h-ui.admin/skin/green/skin.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/h-ui.admin/css/style.css}" type="text/css"/>
    <!--[if IE 6]>
    <script type="text/javascript" th:src="@{/lib/DD_belatedPNG_0.0.8a-min.js}"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>编辑账户信息</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-admin-add" method="post" onsubmit="return passwordCheck()"
          th:action="@{/userEdit}">
        <input class="hidden" name="userID" th:value="${user.userID}">
        <br><br>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">用户：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" name="userName" readonly="readonly" th:value="${user.userName}" type="text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" name="userNick" th:value="${user.userNick}" type="text">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>新密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input autocomplete="off" class="input-text" name="password"
                       placeholder="密码必须由6到16位的字母或数字组合而成"
                       type="password">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>确认密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input autocomplete="off" class="input-text" name="userPassword2" placeholder="确认新密码"
                       type="password">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>手机号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" name="userPhone" placeholder="请输入11位手机号" th:value="${user.userPhone}"
                       type="text">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
        <h1 style="font-size: 18px" th:text="${msg}"></h1>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script th:src="@{/lib/jquery/1.9.1/jquery.min.js}" type="text/javascript"></script>
<script th:src="@{/lib/layer/2.4/layer.js}" type="text/javascript"></script>
<script th:src="@{/h-ui/js/H-ui.min.js}" type="text/javascript"></script>
<script th:src="@{/h-ui.admin/js/H-ui.admin.js}" type="text/javascript"></script>

<!--请在下方写此页面业务相关的脚本-->
<script th:src="@{/lib/datatables/1.10.15/jquery.dataTables.min.js}" type="text/javascript"></script>
<script th:src="@{/lib/laypage/1.2/laypage.js}" type="text/javascript"></script>
</body>
</html>